﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SYS_STZ.aspx.cs" Inherits="GPCSC.Web.SHFW.SYS_STZ" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
        <title>淮安市领导干部下基层活动网站</title>
<meta name="KEYWords" content="淮安市领导干部下基层活动,三解三促,三进三帮" />
<meta name="DEscription" content="淮安市领导干部下基层活动,三解三促,三进三帮" />
    <script  type="text/javascript" src="../Scripts/jquery-1.4.1.min.js"></script>
      <style type="text/css">
        .x-grid3-row-body .expander
        {
            padding: 5px;
        }
        .x-grid3-row-body .expander p
        {
            padding: 5px;
        }
        .x-grid3-row-body .expander strong
        {
            font-weight: bold;
        }
        a
        {
             text-decoration:none;
             color:Black;
            
            }
    </style>
    <script>
        function sdf() {
            //            alert('1');
            $('#leftFrame', parent.document).attr("src", "left.aspx?tz=1");
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
<ext:PageManager ID="PageManager1" runat="server" />
<ext:Panel ID="Panel7" runat="server" EnableBackgroundColor="true" BodyPadding="3px"
        EnableLargeHeader="true" Title="收件信箱" ShowBorder="false" ShowHeader="True" 
        BoxConfigAlign="Stretch">
        <Items>
            <ext:Form ID="Form5" ShowBorder="False" BodyPadding="5px" EnableBackgroundColor="true"
                ShowHeader="False" runat="server" CssStyle="width:100%;">
                <Rows>
                 <ext:FormRow>
                        <Items>
                     <ext:DropDownList ID="DropDownList2"  AutoPostBack="true" EnableEdit="true"  DataValueField="fsuserid" 
                                DataTextField="fsname" runat="server" Label="按人名快速检索" 
                                OnSelectedIndexChanged="DropDownList2_SelectedIndexChanged">

                    </ext:DropDownList>

           </Items>
                    </ext:FormRow>
                    <ext:FormRow  >
                        <Items>
    <ext:Grid ID="Grid1" ShowBorder="true" ShowHeader="true" 
    EnableCheckBoxSelect="true"  DataKeyNames="CLUSid" EnableRowNumber="True"

    Title="我的收件列表"  Height="700px"        runat="server" >
           <Toolbars>
            <ext:Toolbar ID="Toolbar1" runat="server">
                <Items>
                    <ext:Button ID="btnDelete" Text="删除选中信件" Icon="Delete" ConfirmText="您确认删除吗?" ConfirmTarget="Self"  OnClick="btnDelete_Click" runat="server" >
                    </ext:Button>
                    <ext:DropDownList ID="DropDownList1"   runat="server" Label="Label"  AutoPostBack="true"
        onselectedindexchanged="DropDownList1_SelectedIndexChanged">
                    <ext:ListItem Text="全部信件" Value = "0" />
                     <ext:ListItem Text="全部未读信件" Value="1" />
                      <ext:ListItem Text="全部已读信件" Value="2" />
                    </ext:DropDownList>
                    <ext:Label ID="Label1" runat="server"  Text="">
                    </ext:Label>
                   
                </Items>
            </ext:Toolbar>
        </Toolbars>

        <Columns>
          <%-- <ext:TemplateField RenderAsRowExpander="true">
                <ItemTemplate>
                    <div class="expander">
                        <p ><strong>发件人： 
                                    <label><%# DataBinder.Eval(Container.DataItem, "fsname")%></label>
                        </strong></p>
                         <p ><strong>附件：
                         <label>
                         <%# DataBinder.Eval(Container.DataItem, "FJUrls")%>
                         </label>
                         </strong></p>
                     
                    </div>
                </ItemTemplate>
            </ext:TemplateField>--%>
<%--            <ext:TemplateField Width="60px">
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Container.DataItemIndex + 1 %>'></asp:Label>
                </ItemTemplate>
            </ext:TemplateField>--%>
             <ext:TemplateField HeaderText="信件标题" Width="400px">
                <ItemTemplate>
                     <a href="<%# GetEditUrl(Eval("CLid"),Eval("CLUSid")) %>"><%# DataBinder.Eval(Container.DataItem, "CLtitle")%></a>

                </ItemTemplate>
            </ext:TemplateField>
           <ext:BoundField Width="100px" DataField="fsname" DataFormatString="{0}"
                HeaderText="发件人" />

            <ext:BoundField Width="100px" DataField="isread" DataFormatString="{0}"
                HeaderText="信件状态" />
             <ext:BoundField Width="100px" DataField="fsdate" 
                HeaderText="发送时间" />

             
            

               

        </Columns>
    </ext:Grid>
                         </Items>
                    </ext:FormRow>
                  </Rows>
                    </ext:Form>
                    </Items>
                    </ext:Panel>
       <ext:Window ID="Window1" Title="查看" Popup="false" EnableIFrame="true" runat="server"
         CloseAction="HidePostBack"  EnableClose="true" IFrameUrl="about:blank"
        EnableMaximize="true" OnClose="Window1_Close"  Target="Self" IsModal="True" Width="800px"
        Height="450px" OnClientCloseButtonClick="sdf();">
    </ext:Window>

    <ext:Label ID="labResult" EncodeText="false" runat="server">
    </ext:Label>
   
    
    </form>
</body>
</html>
